﻿using System;
using System.Collections.Generic;
using System.Text;

using PluginCore;

using Refactor.Commands;
using Refactor.Dialogues;

namespace Refactor.Provider
{
    internal static class UserInterfaceManager
    {
        private static Refactor.Dialogues.ProgressDialogue m_FindingReferencesDialogueMain;

        private static FlashDevelop.MainForm Main
        {
            get
            {
                return (PluginBase.MainForm as FlashDevelop.MainForm);
            }
        }

        internal static ProgressDialogue FindingReferencesDialogueMain
        {
            get
            {
                if (m_FindingReferencesDialogueMain == null)
                {
                    m_FindingReferencesDialogueMain = new ProgressDialogue();
                    Main.AddOwnedForm(m_FindingReferencesDialogueMain);
                }
                return m_FindingReferencesDialogueMain;
            }
        }
    }
}
